package com.info33.platform.system.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.info33.platform.common.mvc.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统 - 字典
 *
 * @author admin
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDictionary extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父 id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pid;

    @ApiModelProperty(value = "对所有租户开放：1/是、0/否")
    private Boolean common;

    @ApiModelProperty(value = "索引")
    private String indexes;

    @ApiModelProperty(value = "字典键")
    private String dictionaryKey;

    @ApiModelProperty(value = "序列码")
    private String code;

    @ApiModelProperty(value = "是否逻辑删除")
    private Boolean deleted;

    @ApiModelProperty(value = "高级-字典值")
    private String dictionaryValue;

    @ApiModelProperty(value = "高级-图片路径")
    private String imgUrl;

    @ApiModelProperty(value = "高级-拓展字段")
    private String expand;

}